package com.jr.mapper;

import com.jr.pojo.LUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {

    //登录
    Integer selectLUser(LUser u);
    //注册
    Integer insertLUser(LUser u);

    //修改密码
    @Update("update user set password = #{password} where username=#{username} and email=#{email}")
    Integer updatePsw(LUser u);
}
